﻿@model kxcxw.Data.Entities.SysItemInfo

@{
    ViewBag.Title = "Create";
    Layout = "~/Areas/Admin/Views/Shared/_DictLayout.cshtml";
}

<h2>
    @Html.ActionLink("大类管理", "Index") &raquo; @Html.ActionLink("添加大类", "Create", null, new { @class = "active" })</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div id="main">
  @using (Html.BeginForm("Create", "Dict", FormMethod.Post, new { name = "jNice", @class = "jNice" }))
    {
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="editor-label">
          类别名称
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemName)
            @Html.ValidationMessageFor(model => model.ItemName)
        </div>
        <div class="editor-label">
           类别描述
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.itemDescription)
            @Html.ValidationMessageFor(model => model.itemDescription)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
</div>
